package com.cyt.work.kwmanagement.model.po;

import com.cyt.base.util.BaseUtil;
import com.cyt.base.util.DictCode;
import com.cyt.sys.model.po.SysUser;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

/**
 * 考务安排表-考务安排表实体类
 *
 * @author han jun
 * @date 2019-11-26 11:15:26
 */
@Data
@NoArgsConstructor
@Table(name = "cyt_kw_management")
public class KwManagement implements Serializable {

	/**
     * 主键
     */ 
	@Id
	private String id;

	/**
     * 模块ID
     */ 
	@Column(name = "apply_id")
	private String applyId;

	/**
     * 考务标题
     */ 
	@Column(name = "title")
	private String title;

	/**
     * 考试类型
     */ 
	@Column(name = "ks_type")
	private String ksType;

	/**
     * 开始时间
     */ 
	@Column(name = "start_time")
	private Date startTime;

	/**
     * 结束时间
     */ 
	@Column(name = "end_time")
	private Date endTime;

	/**
     * 地址
     */ 
	@Column(name = "address")
	private String address;

	/**
     * 考试须知
     */ 
	@Column(name = "remark")
	private String remark;

	/**
     * 这状态 0:已发布 1:未发布
     */ 
	@Column(name = "state")
	private String state;

	/**
     * 记录当前的步骤
     */ 
	@Column(name = "step")
	private String step;

	/**
     * 状态(1:正常，2：删除)
     */ 
	@Column(name = "remove_tag")
	private String removeTag;

	/**
     * 创建时间
     */ 
	@Column(name = "create_time")
	private Date createTime;

	/**
     * 更新时间
     */ 
	@Column(name = "update_time")
	private Date updateTime;

	/**
     * 创建人
     */ 
	@Column(name = "create_user")
	private String createUser;

	/**
     * 更新人
     */ 
	@Column(name = "update_user")
	private String updateUser;

	/**
	 * 创建对象
	 *
	 * @param sysUser 当前用户信息
	 * @author han jun
	 * @date 2019-11-26 11:15:26
	 */
	public KwManagement(SysUser sysUser) {
		this.id = BaseUtil.uId();
		this.removeTag = DictCode.BASE_REMOVE_TAG_NORMAL;
		this.createTime = new Date();
		this.createUser = sysUser.getId();
		this.updateTime = new Date();
		this.updateUser = sysUser.getId();
	}
}